package client;

import java.awt.BorderLayout;
import java.awt.Container;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import javax.swing.JFrame;
import javax.swing.JLabel;
import panels.SeaPanel;
/**
 *
 * @author ubu
 */
public class ShipClient extends JFrame{

    SeaPanel plansza = new SeaPanel();
    JLabel tytul = new JLabel("Statki");
    
    public ShipClient()
    {
        Container container = getContentPane();
        container.add(tytul,BorderLayout.NORTH);
        container.add(plansza,BorderLayout.CENTER);

    }
    /**
     * @param args the command line arguments
     * @throws NotBoundException 
     * @throws RemoteException 
     * @throws MalformedURLException 
     */
    public static void main(String[] args) throws RemoteException, NotBoundException, MalformedURLException {
        GameForm client = new GameForm();
        client.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        client.setSize(client.getPreferredSize());
        client.setVisible(true);

    }
}
